<template>
  <div class="bank-detail">
    <page-head>基本信息</page-head>
    <div class="content">
      <div class="info-item">
        <svg-icon name="build" size="16"></svg-icon>
        <p>亚运村支行营业室</p>
      </div>
      <div class="info-item">
        <svg-icon name="location" size="16"></svg-icon>
        <p>北京市朝阳区慧忠北里407号</p>
      </div>
      <div class="info-item">
        <svg-icon name="tele" size="16"></svg-icon>
        <p>010-64863524</p>
      </div>
      <div class="office-hours">
        <h2 class="plate-title">
          <svg-icon name="time" size="16"></svg-icon>
          <span>营业时间：</span>
        </h2>
        <table>
          <thead>
            <tr>
              <th></th>
              <th>个人业务</th>
              <th>对公业务</th>
            </tr>
          </thead>
          <tbody>
            <tr>
              <td>周一至周五</td>
              <td>9:00 - 17:00</td>
              <td>9:00 - 12:00<br>13:30 - 17:00</td>
            </tr>
            <tr>
              <td>周六</td>
              <td>9:00 - 17:00</td>
              <td></td>
            </tr>
            <tr>
              <td>周日</td>
              <td>9:00 - 17:00</td>
              <td></td>
            </tr>
          </tbody>
        </table>
      </div>
      <div class="business-scope">
        <h2 class="plate-title">
          <svg-icon name="business" size="16"></svg-icon>
          <span>业务办理：</span>
        </h2>
        <ul>
          <li>
            <svg-icon name="change-card" size="16"></svg-icon>
            <span>换卡不换号</span>
          </li>
          <li>
            <svg-icon name="recording" size="16"></svg-icon>
            <span>历史明细打印</span>
          </li>
          <li>
            <svg-icon name="create-card" size="16"></svg-icon>
            <span>借记卡申请</span>
          </li>
          <li>
            <svg-icon name="etc" size="16"></svg-icon>
            <span>ETC申请</span>
          </li>
          <li>
            <svg-icon name="credit-card" size="16"></svg-icon>
            <span>信用卡申请</span>
          </li>
        </ul>
      </div>
      <div class="wating">
        <h2 class="plate-title">
          <svg-icon name="wating" size="16"></svg-icon>
          <span>排队情况：</span>
        </h2>
        <ul>
          <li>
            <p>个人业务</p>
            <p><span>等待人数</span><span>76</span></p>
          </li>
          <li>
            <p>对公业务</p>
            <p><span>等待人数</span><span>35</span></p>
          </li>
        </ul>
      </div>
      <div class="smart-machine">
        <div class="title">
          <h2 class="plate-title">
            <svg-icon name="atm" size="16"></svg-icon>
            <span>智能机具</span>
          </h2>
          <div class="legend">
            <div class="used"><span></span>占用中</div>
            <div class="unuse"><span></span>空闲中</div>
          </div>
        </div>
        <ul>
          <li>
            <span>CRS</span>
            <div class="process">
              <div class="inner" style="width: 20%">2</div>
            </div>
            <div class="total">6</div>
          </li>
          <li>
            <span>ATM</span>
            <div class="process">
              <div class="inner" style="width: 50%">2</div>
            </div>
            <div class="total">6</div>
          </li>
          <li>
            <span>VTM</span>
            <div class="process">
              <div class="inner" style="width: 70%">2</div>
            </div>
            <div class="total">6</div>
          </li>
        </ul>
      </div>
      <div class="other-info">
        <svg-icon name="area" size="16"></svg-icon>
        <span>网点面积</span>
        <span>100 m²</span>
      </div>
      <div class="other-info">
        <svg-icon name="time" size="16"></svg-icon>
        <span>设立时间</span>
        <span>1990-01-02</span>
      </div>
      <div class="other-info">
        <svg-icon name="staff" size="16"></svg-icon>
        <span>员工数量</span>
        <span>32 人</span>
      </div>
    </div>
  </div>
</template>

<script>
import PageHead from '@/components/PageHead'
export default {
  components: {
    PageHead
  }
}
</script>

<style lang="less" scoped>
.content {
  padding: 16px;
  .info-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    font-size: 12px;
    color: #fff;
    line-height: 1.5;
    p {
      padding: 0 10px;
    }
  }
  .plate-title {
    display: flex;
    align-items: center;
    font-size: 12px;
    line-height: 1.5;
    color: #fff;
    padding: 16px 0 10px;
    span {
      margin-left: 10px;
    }
  }
  .office-hours {
    table {
      font-size: 12px;
      width: 100%;
      border:1px solid rgba(255, 255, 255, 0.1);
      border-collapse:collapse;    //去掉边框间空隙
      thead {
        background-color: rgba(255, 255, 255, 0.03);
        line-height: 25px;
        border-color: #fff;
        th {
          color: #fff;
          border-color: #fff;
          border:1px solid rgba(255, 255, 255, 0.1);
        }
      }
      tbody {
        border-color: #fff;
        td {
          line-height: 1.5;
          text-align: center;
          padding: 4px 0;
          border-color: #fff;
          color: rgba(255, 255, 255, 0.6);
          border:1px solid rgba(255, 255, 255, 0.1);
        }
      }
    }
  }
  .business-scope {
    ul {
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      li {
        min-width: 120px;
        height: 32px;
        border: 1px solid rgba(187, 187, 187, 1);
        background-color: rgba(245, 245, 245, 0.03);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 12px;
        color: #fff;
        margin: 0 10px 10px 0;
        span {
          margin-left: 4px;
        }
      }
    }
  }
  .wating {
    ul {
      li {
        display: flex;
        height: 32px;
        padding: 0 16px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        background-color: rgba(255, 255, 255, .03);
        border-bottom: 1px solid rgba(255, 255, 255, .1);
        &:last-child {
          border-bottom-color: rgba(0 ,0 ,0 , 0);
        }
        p {
          font-size: 12px;
          color: #fff;
          &:last-child {
            span {
              color: rgba(255, 255, 255, .4);
              &:last-child {
                font-size: 16px;
                color: rgba(220, 195, 143, 1);
                margin-left: 8px;
              }
            }
          }
        }
      }
    }
  }
  .smart-machine {
    margin-bottom: 16px;
    .title {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 16px 0 10px;
      h2 {
        padding: 0;
      }
    }
    .legend {
      display: flex;
      div {
        display: flex;
        align-items: center;
        margin-left: 16px;
        span {
          display: inline-block;
          width: 24px;
          height: 16px;
          border-radius: 4px;
          margin-right: 6px;
        }
        &:first-child {
          color: rgba(220, 195, 143, 1);
          span {
            background-color: rgba(220, 195, 143, 1);
          }
        }
        &:last-child {
          color: rgba(255, 255, 255, .4);
          span {
            background: linear-gradient(
                  -45deg,
                  rgba(255, 255, 255, .3) 0, rgba(255, 255, 255, .3) 25%, transparent 25%, transparent 50%,
                  rgba(255, 255, 255, .3) 50%, rgba(255, 255, 255, .3) 75%, transparent 75%, transparent
                );
            background-size: 8px 8px;
          }
        }
      }
    }
    ul {
      li {
        display: flex;
        align-items: center;
        font-size: 12px;
        color: #fff;
        margin-bottom: 14px;
        &:last-child {
          margin-bottom: 0;
        }
        span {
          width: 40px;
        }
        .process {
          flex: 1;
          height: 20px;
          background: linear-gradient(
                -45deg,
                rgba(255, 255, 255, .3) 0, rgba(255, 255, 255, .3) 25%, transparent 25%, transparent 50%,
                rgba(255, 255, 255, .3) 50%, rgba(255, 255, 255, .3) 75%, transparent 75%, transparent
              );
          background-size: 8px 8px;
          .inner {
            background-color: rgba(220, 195, 143, 1);
            height: 100%;
            line-height: 20px;
            text-align: right;
            box-sizing: border-box;
            padding: 0 10px;
          }
        }
        .total {
          width: 20px;
          text-align: right;
        }
      }
    }
  }
  .other-info {
    height: 32px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    &:last-child {
      border: none;
    }
    span {
      font-size: 12px;
      color: #fff;
      margin-left: 10px;
      &:last-child {
        margin-left: auto;
      }
    }
  }
}
</style>
